# from libs.zabbix_severity import zabbix_severity

class zabbix_trigger():

	tId = None
	tHostname = None
	tDdesc = None
	tValue = None
	tSeverity = None
	tLastChange = None

	def __init__(self, tId = None, tHostname = None, tDesc = None, tValue = None, tSeverity = None, tLastChange = None):
		self.set_id(tId)
		self.set_hostname(tHostname)
		self.set_desc(tDesc)
		self.set_value(tValue)
		self.set_severity(tSeverity)
		self.set_lastchange(tLastChange)

	def set_id(self, tId):
		self.tID = int(tId)

	def get_id(self):
		return self.tID

	def set_hostname(self, tHostname):
		self.tHostname = str(tHostname)

	def get_hostname(self):
		return self.tHostname

	def set_desc(self, tDesc):
		self.tDesc = str(tDesc)

	def get_desc(self):
		return self.tDesc

	def set_value(self, tValue):
		self.tValue = int(tValue)

	def get_value(self):
		return self.tValue

	def set_severity(self, tSeverity):
		self.tSeverity = int(tSeverity)

	def get_severity(self):
		return self.tSeverity

	def set_lastchange(self, tLastChange):
		self.tLastChange = float(tLastChange)

	def get_lastchange(self):
		return self.tLastChange

